﻿<Window x:Class="yavc.DiagnosticTool.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Diagnostics Tool" Height="350" Width="525">
    <Window.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="Margin" Value="20" />
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="Margin" Value="20" />
            <Setter Property="Width" Value="300" />
        </Style>
    </Window.Resources>
    <StackPanel Orientation="Vertical">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="Device Model #:"  />
            <TextBox x:Name="tbDeviceModelNumber" />
        </StackPanel>
        
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="Hostname or IP:" />
            <TextBox x:Name="tbHostNameOrIp" />
        </StackPanel>
        
        <ProgressBar x:Name="pbRunning" Margin="20" Minimum="0" Maximum="1"
                     Value="{Binding PercentageComplete}"
                     IsIndeterminate="{Binding IsIndeterminite}" 
                     Height="10" Visibility="Hidden" />

        <TextBlock Text="{Binding Message}" Margin="20,-10,20,20" TextWrapping="Wrap" />

        <Button Content="Run" Margin="20" Click="Run_Click" IsDefault="True" IsEnabled="{Binding IsNotRunning}" />
        
    </StackPanel>
</Window>
